<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>APP下载-海乐购</title>
  <meta name="keywords" content="" />
  <meta name="description" content="" />
  <meta name="viewport"
        content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  <meta content="yes" name="apple-mobile-web-app-capable" />
  <meta content="black" name="apple-mobile-web-app-status-bar-style" />
  <meta content="telephone=no" name="format-detection" />
  <meta content="email=no" name="format-detection" />
  <link rel="stylesheet" type="text/css" href="static/wap/css/common.css" />
  <link rel="stylesheet" type="text/css" href="static/wap/css/down.css" />
  <script type="text/javascript" src="static/wap/js/jquery-1.9.1.min.js"></script>
  <script type="text/javascript" src="static/wap/js/resize.js"></script>
</head>
<body>
<div class="container bg">
  <h2>海乐购APP下载</h2>
  <div class="btn" style="margin-top:-25px;">
<!--    <a href="https://itunes.apple.com/cn/app/id1503291374?mt=8" class="block iphone"></a>-->
    <a id="android" href="/Public/真信美.apk" class="block andriod"></a>
    <!-- <a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.work.diandianzhuan" class="block andriod"></a> -->
  </div>
</div>
</body>
<script type="text/javascript">
  window.addEventListener('load',function(){
    if(isWeiXin()){
      //显示遮罩层
      $('body').addClass('show');
      /* var u = navigator.userAgent;
      if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1)
      {
          //安卓手机

      } else if (u.indexOf('iPhone') > -1) {
          //苹果手机
          //显示遮罩层
          $('body').addClass('show');
      } else if (u.indexOf('Windows Phone') > -1) {
          //winphone手机

      } */
    }
    function isWeiXin(){
      //window.navigator.userAgent属性包含了浏览器类型、版本、操作系统类型、浏览器引擎类型等信息，这个属性可以用来判断浏览器类型
      var ua = window.navigator.userAgent.toLowerCase();
      //通过正则表达式匹配ua中是否含有MicroMessenger字符串
      if(ua.match(/MicroMessenger/i) == 'micromessenger'){
        return true;
      }else{
        return false;
      }
    }
    $.get('https://shoper.wzcrkj.com/api/Version/index',res =>{
      if(res.data.detail.url){
        let url = res.data.detail.url
        $('#android').attr('href',url)
      }
    })
  })
</script>
</html>
